<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Index
 *
 * @author ananda
 */
class Action_Info_Index extends Action
{
    public function main()
    {
        $realpath = Com::glob('env.realpath');
        $current  = Com::glob('env.current');
        $parent   = Com::glob('env.parent');
        $child    = Com::glob('env.child');
        $scan     = Com::glob('env.scan');
        $select   = Com::glob('env.select');
        $root = CROOT;

        if ($scan && $select) {
            if ($scan === 'MOD') {
                $select = Com::glob()->t[array('msg.info:selected_module', array($select))];
            } elseif ($scan === 'APP') {
                $select = Com::glob()->t[array('msg.info:selected_app', array($select))];
            } else {
                $select = Com::glob()->t['msg.info:can_not_select'];
            }
        } else {
            $select = Com::glob()->t['msg.info:can_not_select'];
        }

        echo Com::glob()->t[array('msg.info:ok', array($select, $root, $realpath))];
    }
}
